package com.dt.dubai.mech.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 商户活动商品关联表
 */

@Data
@Table(name = "dt_mech_activity_commodity")
@EqualsAndHashCode(callSuper = false)
public class MechActivityCommodityEntity extends BaseEntity {

    //商户活动记录id
    @NotNull(message = "marketingActivityRecordId参数不能为空")
    Long marketingActivityRecordId;

    //商户商品记录id
    @NotNull(message = "commodityRecordId参数不能为空")
    Long commodityRecordId;

    //活动商品序号
    Integer orderNumber;


}
